# import time
import subprocess
import time

from appium.options.common import AppiumOptions
from appium import webdriver
from appium.options.common.base import AppiumOptions
from appium.webdriver.common.appiumby import AppiumBy

from basic.basedriver import DRIVER
from basic.basepage import BasePage



class PageMain(BasePage):
    def goto_xiaomi_new_product(self):
        from page.page_shopping.page_navigation_shopping_new import PageShoppingNew
        self.click_by_text("小米上新")
        return PageShoppingNew()
    def goto_xiaomi_crowdfunding(self):
        self.click_by_text("小米众筹")
    def goto_classification(self):
        from page.page_shopping.page_navigation_shopping_class import PageShoppingClass
        self.click_by_text("分类")
        return PageShoppingClass()
    def goto_mine(self):
        self.click_by_text("我的")
    def goto_service(self):
        from page.page_service.page_after_sales_service_service_progress import PageAfterSalesService
        self.click_by_text("服务")
        return PageAfterSalesService()
    def goto_shopping_cart(self):
        self.click_by_text("购物车")
if __name__ == '__main__':
    PageMain().goto_xiaomi_new_product()